<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新增用户</title>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
%> 
<c:set var="ctx" value="<%=basePath%>" scope="page"/>
</head>
<body class="easyui-layout" fit="true" >
	<div  data-options="region:'north',collapsible:true,title:'查询条件'" style="height:230px;">
		<div class="easyui-panel"   data-options="border:false" style="margin-top: 20px;">
		<form id="userForm">
			<input type="hidden" name="id" value="${userInfo.id }">
			<input type="hidden" id="sexV" value="${userInfo.sex }">
			<input type="hidden" id="birthdayV" value="${userInfo.birthdayStr }">
			<table style="width:100%;">
				<tr>
					<td>姓名：</td>
					<td><input  name="name" id="name" value="${userInfo.name }" class="easyui-textbox"></td>
				</tr>
				<tr>
					<td>年龄：</td>
					<td><input  name="age" id="age" value="${userInfo.age }" class="easyui-numberbox"></td>
				</tr>
				<tr>
					<td>性别：</td>
					<td>
						<select class="easyui-combobox"  name="sex" id="sex" style="width: 50px;" editable="false">
							<option value="1" <c:if test='${userInfo.sex == 1 }'>selected</c:if> >男</option>
							<option value="2" <c:if test='${userInfo.sex == 2 }'>selected</c:if> >女</option>
						</select>
					</td>
				</tr>
				<tr>
					<td>出生日期：</td>
					<td><input name="birthday" class="easyui-datebox" id="birthday" value="${userInfo.birthdayStr }" editable="false"></td>
				</tr>
			</table>
		</form>
		<div align="center" style="margin-bottom:10px;margin-top:5px">
			<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save'" onclick="save(${userInfo.id})">保存</a>
			<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-clear'" onclick="clearForm()">重置</a>
		</div>
		</div>
	</div>
</body>
</html>